package de.ret_world.openrpgstudio.editor;

import java.nio.file.Path;
import java.util.Collection;
import java.util.HashSet;

/**
 * With this class you can link on Media you need in your library, like images, sounds or music.
 *
 * @author emu
 */
public class Media {

    public static final int IMAGE = 0;
    public static final int SOUND = 1;
    public static final int MUSIC = 2;
    //Variables
    private int type;
    private String id;
    private Path file;
    private HashSet<String> users;

    public Media(int TYPE, String id, Path file) {
        this.type = TYPE;
        this.id = id;
        this.file = file;
        users = new HashSet<>();
    }

    public Path getFile() {
        return file;
    }

    public String getID() {
        return id;
    }

    public void setID(String id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public Collection<String> getUsers() {
        return users;
    }

    @Override
    public String toString() {
        return getID();
    }
}
